<template>
  <div class="bill-cost-detail-wrap">

    <div class="bill-const-detail-box">
      <div class="bill-const-detail-item">
        <span class="bill-key">类型</span>
        <span class="bill-val">{{type}}</span>
      </div>
    </div>

    <div class="bill-const-detail-box">
      <div class="bill-const-detail-item">
        <span class="bill-key">金额</span>
        <span class="bill-val">{{money}}元</span>
      </div>
    </div>

    <div class="bill-const-detail-box">
      <div class="bill-const-detail-item">
        <span class="bill-key">状态</span>
        <span class="bill-val">已到蓝聘账户</span>
      </div>
    </div>

    <div class="bill-const-detail-box">
      <div class="bill-const-detail-item">
        <span class="bill-key">到账时间</span>
        <span class="bill-val bill-time">{{stamp}}</span>
      </div>
    </div>

  </div>
</template>

<script>
  import {toDecimal} from "../../../config/util";

  export default {
    data() {
      return {
        type: this.$route.query.type,
        money: "",
        stamp: this.$route.query.stamp,
      }
    },
    created() {
      this.money = toDecimal(this.$route.query.money);
    }
  }
</script>

<style lang="less" scoped>
  @import "../../../assest/mixin";

  .bill-cost-detail-wrap {
    .wh(100%, 100%);
    background: @talent-theme-bg-color;
    .bill-const-detail-box {
      .wh(100%, 1.333rem);
      background: #FFF;
      .bill-const-detail-item {
        display: flex;
        align-items: center;
        margin-left: 0.32rem;
        .wh(96.8%, 1.333rem);
        border-bottom: 0.027rem solid #f2f2f2;
        .bill-key {
          .size-color(0.427rem, rgba(102, 102, 102, 1));
        }
        .bill-val {
          padding-left: 1.4rem;
          .size-color(0.427rem, #333);
        }
        .bill-time {
          padding-left: 0.533rem;
        }
      }
    }
  }
</style>
